//package com.waimai_lp.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.stereotype.Component;
//
//import javax.sql.DataSource;
//import java.sql.Connection;
//import java.sql.SQLException;
//
//@Component
//public class ConnectionConfig {
//
//    @Bean
//    public Connection getConnection(DataSource datasource) throws SQLException {
//        return datasource.getConnection();
//    }
//
//}
